import http from "@/api/config/http";
import { IQuery, ITableResponse } from "@/interface/IAxios";

export interface QueueUpgrade {
  queueId: string;
  tagCode: string;
  stationNum: string;
  sendTime: string;
  doneTime: null;
  retryTimes: number;
  fwVersion: string;
  fwTarget: string;
  status: string;
  username: null;
  operator: null;
  deptId: string;
}

export function queueUpgradeList(query?: IQuery): Promise<ITableResponse<QueueUpgrade>> {
  return http.request({
    url: `/queue/upgrade/list`,
    method: "get",
    params: query
  });
}
